<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <script src="./js/jquery-2.1.1.js"></script>
    <script src="./js/underscore.js"></script>
    <script src="./js/backbone.js"></script>
</head>
<body>
hello backbone

<script type="text/javascript">
    var Song = Backbone.Model.extend({
        initialize: function () {
            console.log('Song init');
        },
        defaults: {
            artist: '',
            name: ''
        }
    });

    var Album = Backbone.Collection.extend({
        model: Song
    });

    var song1 = new Song({artist: "a", name: "abc"});
    var song2 = new Song({artist: "z", name: "zzz"});

    var album = new Album([song1, song2]);
    console.log(album.models);
</script>

</body>
</html>